package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.goods.ImportDB2ESService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ImportController {

    @Reference
    private ImportDB2ESService importDB2ESService;

    @GetMapping("import")
    public String importDB(){
        importDB2ESService.importDB();
        return "ok";
    }



}
